Book Contents

nextStateBasedOn attribute syntax

Use the following syntax to specify the nextStateBasedOn attribute:

nextStateBasedOn="enumeration"

where enumeration is one of: currentState | valueControl

  • Current state - the application switches the button from the current state to the other state and writes out the other state value.
  • Value control - the application reads the value of the Value control, and, if the value matches one of the button’s two state values, changes the button to the other state and writes out the other state value. Select this option if you want the button to base its state on external changes to the Value control.

If the value does not match one of the button’s state values, the application changes the button to State 0 and writes out the State 0 value.

When the multistate push button object is in its last configured state, pressing it causes the button to change to State 0 and write out the State 0 value.

See also

nextStateBasedOn attribute

enumeration